// TinyPPDlg.h : header file
//
//{{AFX_INCLUDES()
#include "webbrowser2.h"
//}}AFX_INCLUDES

#if !defined(AFX_TINYPPDLG_H__FBEF7999_C5CB_4F71_831A_0E60F0E7F19E__INCLUDED_)
#define AFX_TINYPPDLG_H__FBEF7999_C5CB_4F71_831A_0E60F0E7F19E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "RSSFeed.h"
#include "RSSParser.h"
#include "FeedTree.h"
#include "FeedFetcher.h"
/////////////////////////////////////////////////////////////////////////////
// CTinyPPDlg dialog
#define WM_FPH_MSG WM_USER+100

class CTinyPPDlg : public CDialog, public FetchProgressHandler
{
// Construction
public:
	CTinyPPDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTinyPPDlg)
	enum { IDD = IDD_TINYPP_DIALOG };
	CFeedTree	m_feedTree;
	CListBox	m_ItemList;
	CString	m_strRSSLink;
	CWebBrowser2	m_Browser;
	CString	m_strFetchProgress;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTinyPPDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
	public:
		virtual void OnFinishFetchAFeed(int nID, int nNum);
private:
	RSSFeed m_Feed;
	vector<RSSItem> m_items;
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTinyPPDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnSelchangeList2();
	afx_msg void OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	afx_msg LRESULT OnFPH(WPARAM wParam, LPARAM lParam);
	afx_msg void OnButton4();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TINYPPDLG_H__FBEF7999_C5CB_4F71_831A_0E60F0E7F19E__INCLUDED_)
